using SqlSugar;
using YL.Utils.Extensions;

namespace YL.Core.Entity
{
    [SugarTable("whr_wechat")]
    public class Whr_wechat
    {
        public Whr_wechat()
        {
        }

        [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public int Id { get; set; }

        [SugarColumn(ColumnName = "wechat_token")]
        public string WechatToken { get; set; }

        [SugarColumn(ColumnName = "openid")]
        public string Openid { get; set; }

        [SugarColumn(ColumnName = "platform")]
        public int Platform { get; set; }

        [SugarColumn(ColumnName = "nickname")]
        public string Nickname { get; set; }
        
        [SugarColumn(ColumnName = "gender")]
        public int Gender { get; set; }
        
        [SugarColumn(ColumnName = "country")]
        public string Country { get; set; }
        
        [SugarColumn(ColumnName = "province")]
        public string Province { get; set; }
        
        [SugarColumn(ColumnName = "city")]
        public string City { get; set; }
        
        [SugarColumn(ColumnName = "avatar")]
        public string Avatar { get; set; }
        
        [SugarColumn(ColumnName = "session_key")]
        public string SessionKey { get; set; }
        
        [SugarColumn(ColumnName = "add_time")]
        public int AddTime { get; set; } = DateTimeExt.GetUnixTimestamp();

        [SugarColumn(ColumnName = "update_time")]
        public int UpdateTime { get; set; }

        [SugarColumn(ColumnName = "ip")]
        public string IP { get; set; }
    }
}